<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div
			        {
			            cursor:pointer;
			        }
		</style>
		<script type="text/javascript">
			function showSubMenu(event) {
			            var content = event.srcElement.getElementsByTagName('ul')[0];
			            if (content.style.display == "none")
			                content.style.display = "block";
			            else
			                content.style.display = "none";
			        }
		</script>

	</head>

	<body>
		<div>
			<div id="menu1" onclick="showSubMenu(event)">
				Menu1
				<ul style="display:none">
					<li><a href="#">Menu1-1</a></li>
					<li><a href="#">Menu1-2</a></li>
					<li><a href="#">Menu1-3</a></li>
				</ul>
			</div>
			<div id="menu2" onclick="showSubMenu(event)">
				Menu2
				<ul style=" display:none">
					<li><a href="#">Menu2-1</a></li>
					<li><a href="#">Menu2-2</a></li>
					<li><a href="#">Menu2-3</a></li>
				</ul>
			</div>
		</div>
	</body>

	</body>

</html>